package io.renren.modules.sp.service;

import io.renren.common.page.PageData;
import io.renren.common.service.CrudService;
import io.renren.common.utils.Result;
import io.renren.modules.sp.dto.SpMatchDTO;
import io.renren.modules.sp.entity.SpMatchEntity;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * 赛事
 *
 * @author whc 15953295779@126.com
 * @since 3.0 2023-04-21
 */
public interface SpMatchService extends CrudService<SpMatchEntity, SpMatchDTO> {

    PageData<SpMatchDTO> queryPage(Map<String, Object> params);

    List<SpMatchEntity> queryPageByAdmin(Map<String, Object> params);

    void generateTicketNo(Long matchTeamId);

    Result<String> downloadLeaderHeaderFile(Map<String, Object> params, HttpServletResponse response) throws Exception;

    List<Map<String,Object>> exportLeaderForm(Map<String, Object> params) throws Exception;
}